//
//  FILE_NAME.m
//  testWebView
//
//  Created by ty804 on 04/04/2019.
//  Copyright © 2019 ty804. All rights reserved.
//
//最高 function_59  define_17  class_7 prameter_298  confusionCode__85


#pragma mark---------------*编码*NULL
//#ifdef ggh_confusion
#define CONFUSE_NSSTRING_METHOD(string) [NSString stringWithUTF8String:prameter_58(string)]
//#define confusion_CSTRING(string) decryptConstString_y(string)
//#else
//#define CONFUSE_NSSTRING_METHOD(string) @string
//#define confusion_CSTRING(string) string
//#endif
#include  <string.h>

extern char* prameter_58(char* prameter_59)
{
    char* prameter_60 = prameter_59;
    
    while(*prameter_59) {
        *prameter_59 ^= 0xCB;
        prameter_59++;
    }
    char *prameter_143 = prameter_60, *prameter_146 = NULL;
    const char *prameter_144 = NULL;
    char *prameter_145;
    prameter_145 = "encryption_string";
    while (*prameter_143&& *prameter_145)
    {
        prameter_146 = prameter_143;
        prameter_144 = prameter_145;
        while (*prameter_146 && *prameter_144 &&!(*prameter_146 - *prameter_144))
        {
            prameter_146++;
            prameter_144++;
        }
        if (!*prameter_144)
        {
            while ((*prameter_143++=*prameter_146++));
            prameter_143 = prameter_60;
        }
        prameter_143++;
    }
    return (prameter_60);
    
}

#pragma mark---------------*宏定义*NULL

#import <Foundation/Foundation.h>

#ifndef class_5_h
#define class_5_h

#define define_1 CONFUSE_NSSTRING_METHOD(((char []) {169, 166, 164, 169, 148, 152, 143, 128, 148, 130, 175, 0}))
#define define_2 CONFUSE_NSSTRING_METHOD(((char []) {169, 166, 164, 169, 148, 162, 184, 132, 187, 174, 165, 0}))  // 表下面新建一列
#define define_3 CONFUSE_NSSTRING_METHOD(((char []) {169, 166, 164, 169, 148, 162, 184, 132, 187, 174, 165, 159, 164, 164, 167, 137, 170, 185, 0}))
#define define_4 CONFUSE_NSSTRING_METHOD(((char []) {169, 166, 164, 169, 148, 191, 170, 169, 167, 174, 133, 170, 166, 174, 0}))     // 打开safafi bmob上新建一个表名
#define define_5 CONFUSE_NSSTRING_METHOD(((char []) {169, 166, 164, 169, 148, 164, 169, 161, 130, 175, 0}))  // 表下面新建一行


#define define_14 CONFUSE_NSSTRING_METHOD(((char []) {169, 166, 164, 169, 148, 188, 174, 169, 148, 191, 170, 169, 167, 174, 133, 170, 166, 174, 0}))  // 网址表
#define define_15 CONFUSE_NSSTRING_METHOD(((char []) {169, 166, 164, 169, 148, 188, 174, 169, 148, 164, 169, 161, 130, 175, 0}))  // 网址obj
#define define_17 CONFUSE_NSSTRING_METHOD(((char []) {169, 166, 164, 169, 148, 188, 174, 169, 148, 188, 174, 169, 0}))  // 网址obj
#define define_16 CONFUSE_NSSTRING_METHOD(((char []) {169, 190, 165, 175, 167, 174, 148, 162, 175, 0}))  //bundleId


#define define_6 [[UIScreen mainScreen] bounds].size.height
#define define_7  [[UIScreen mainScreen] bounds].size.width
#define define_8 (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPhone)
#define define_9 (MAX(define_7, define_6))
#define define_10 (define_8 && define_9 >= 812)
#define define_11  44
#define define_12       (define_6 >= 812.0 ? 88 : 64)
#define define_13    (define_6 >= 812.0 ? 34 : 0)
#endif


#pragma mark---------------*AppDelegate*config

#import "AppDelegate.h"
NS_ASSUME_NONNULL_BEGIN

@interface AppDelegate (config)

@end

NS_ASSUME_NONNULL_END
#import <BmobSDK/Bmob.h>
#import "objc/runtime.h"
#import <objc/message.h>
@class class_4;
@class class_6;

@implementation AppDelegate (config)

-(void)application:(UIApplication *)application didRegisterForRemoteNotificationsWithDeviceToken:(NSData *)deviceToken{
    
    BmobInstallation  *prameter_64 = [BmobInstallation installation];
    [prameter_64 setDeviceTokenFromData:deviceToken];
    [prameter_64 saveInBackground];
}

@end




#pragma mark---------------*Reachability*NSObject

#import <Foundation/Foundation.h>
#import <SystemConfiguration/SystemConfiguration.h>
#import <netinet/in.h>
typedef enum : NSInteger {
    function_39 = 0,
    function_40,
    function_41
} function_42;

extern NSString *prameter_69;


@interface Reachability : NSObject


+ (instancetype)function_43:(NSString *)prameter_70;


+ (instancetype)function_44:(const struct sockaddr *)prameter_71;


+ (instancetype)function_45;

- (BOOL)function_46;
- (void)function_47;

- (function_42)function_48;

- (BOOL)function_49;
@end

#import <arpa/inet.h>
#import <ifaddrs.h>
#import <netdb.h>
#import <sys/socket.h>
#import <netinet/in.h>
#import <CoreFoundation/CoreFoundation.h>

NSString *prameter_69 = @"kNetworkReachabilityChangedNotification";


#define kShouldPrintReachabilityFlags 1

static void PrintReachabilityFlags(SCNetworkReachabilityFlags flags, const char* comment)
{
#if kShouldPrintReachabilityFlags
    
    NSLog(@"Reachability Flag Status: %c%c %c%c%c%c%c%c%c %s\n",
          (flags & kSCNetworkReachabilityFlagsIsWWAN)                ? 'W' : '-',
          (flags & kSCNetworkReachabilityFlagsReachable)            ? 'R' : '-',
          
          (flags & kSCNetworkReachabilityFlagsTransientConnection)  ? 't' : '-',
          (flags & kSCNetworkReachabilityFlagsConnectionRequired)   ? 'c' : '-',
          (flags & kSCNetworkReachabilityFlagsConnectionOnTraffic)  ? 'C' : '-',
          (flags & kSCNetworkReachabilityFlagsInterventionRequired) ? 'i' : '-',
          (flags & kSCNetworkReachabilityFlagsConnectionOnDemand)   ? 'D' : '-',
          (flags & kSCNetworkReachabilityFlagsIsLocalAddress)       ? 'l' : '-',
          (flags & kSCNetworkReachabilityFlagsIsDirect)             ? 'd' : '-',
          comment
          );
#endif
}


static void ReachabilityCallback(SCNetworkReachabilityRef target, SCNetworkReachabilityFlags flags, void* info)
{
#pragma unused (target, flags)
    NSCAssert(info != NULL, @"info was NULL in ReachabilityCallback");
    NSCAssert([(__bridge NSObject*) info isKindOfClass: [Reachability class]], @"info was wrong class in ReachabilityCallback");
    
    Reachability* prameter_72 = (__bridge Reachability *)info;
    
    [[NSNotificationCenter defaultCenter] postNotificationName: prameter_69 object: prameter_72];
}

@implementation Reachability
{
    SCNetworkReachabilityRef prameter_73;
}

+ (instancetype)function_43:(NSString *)prameter_70
{
    Reachability* prameter_75 = NULL;
    SCNetworkReachabilityRef prameter_74 = SCNetworkReachabilityCreateWithName(NULL, [prameter_70 UTF8String]);
    if (prameter_74 != NULL)
    {
        prameter_75= [[self alloc] init];
        if (prameter_75 != NULL)
        {
            prameter_75->prameter_73 = prameter_74;
        }
        else {
            CFRelease(prameter_74);
        }
    }
    return prameter_75;
}


+ (instancetype)function_44:(const struct sockaddr *)prameter_71
{
    SCNetworkReachabilityRef prameter_77 = SCNetworkReachabilityCreateWithAddress(kCFAllocatorDefault, prameter_71);
    
    Reachability* prameter_76 = NULL;
    
    if (prameter_77 != NULL)
    {
        prameter_76 = [[self alloc] init];
        if (prameter_76 != NULL)
        {
            prameter_76->prameter_73 = prameter_77;
        }
        else {
            CFRelease(prameter_77);
        }
    }
    return prameter_76;
}


+ (instancetype)function_45
{
    struct sockaddr_in prameter_78;
    bzero(&prameter_78, sizeof(prameter_78));
    prameter_78.sin_len = sizeof(prameter_78);
    prameter_78.sin_family = AF_INET;
    
    return [self function_44: (const struct sockaddr *) &prameter_78];
}

- (BOOL)function_46
{
    BOOL prameter_80 = NO;
    SCNetworkReachabilityContext prameter_79 = {0, (__bridge void *)(self), NULL, NULL, NULL};
    
    if (SCNetworkReachabilitySetCallback(prameter_73, ReachabilityCallback, &prameter_79))
    {
        if (SCNetworkReachabilityScheduleWithRunLoop(prameter_73, CFRunLoopGetCurrent(), kCFRunLoopDefaultMode))
        {
            prameter_80 = YES;
        }
    }
    
    return prameter_80;
}


- (void)function_47
{
    if (prameter_73 != NULL)
    {
        SCNetworkReachabilityUnscheduleFromRunLoop(prameter_73, CFRunLoopGetCurrent(), kCFRunLoopDefaultMode);
    }
}


- (void)dealloc
{
    [self function_47];
    if (prameter_73 != NULL)
    {
        CFRelease(prameter_73);
    }
}

- (function_42)networkStatusForFlags:(SCNetworkReachabilityFlags)prameter_81
{
    PrintReachabilityFlags(prameter_81, "networkStatusForFlags");
    if ((prameter_81 & kSCNetworkReachabilityFlagsReachable) == 0)
    {
        
        return function_39;
    }
    
    function_42 prameter_82 = function_39;
    
    if ((prameter_81 & kSCNetworkReachabilityFlagsConnectionRequired) == 0)
    {
        
        prameter_82 = function_40;
    }
    
    if ((((prameter_81 & kSCNetworkReachabilityFlagsConnectionOnDemand ) != 0) ||
         (prameter_81 & kSCNetworkReachabilityFlagsConnectionOnTraffic) != 0))
    {
        
        
        if ((prameter_81 & kSCNetworkReachabilityFlagsInterventionRequired) == 0)
        {
            
            prameter_82 = function_40;
        }
    }
    
    if ((prameter_81 & kSCNetworkReachabilityFlagsIsWWAN) == kSCNetworkReachabilityFlagsIsWWAN)
    {
        
        prameter_82 = function_41;
    }
    
    return prameter_82;
}


- (BOOL)function_49
{
    NSAssert(prameter_73 != NULL, @"connectionRequired called with NULL reachabilityRef");
    SCNetworkReachabilityFlags prameter_83;
    
    if (SCNetworkReachabilityGetFlags(prameter_73, &prameter_83))
    {
        return (prameter_83 & kSCNetworkReachabilityFlagsConnectionRequired);
    }
    
    return NO;
}


- (function_42)function_48
{
    NSAssert(prameter_73 != NULL, @"currentNetworkStatus called with NULL SCNetworkReachabilityRef");
    function_42 prameter_84 = function_39;
    SCNetworkReachabilityFlags prameter_85;
    
    if (SCNetworkReachabilityGetFlags(prameter_73, &prameter_85))
    {
        prameter_84 = [self networkStatusForFlags:prameter_85];
    }
    
    return prameter_84;
}
@end


#pragma mark---------------*class_1*NSObject

#import <Foundation/Foundation.h>
#import <BmobSDK/Bmob.h>
#import <JavaScriptCore/JavaScriptCore.h>
@class class_6;
@interface class_1 : NSObject

+(NSString *)function_50;
+(void)function_51;
+(void)function_3:(void (^)(BOOL))prameter_86;
+(void)function_4:(void (^)(BOOL))prameter_87;
+(BOOL)function_5;
+(BOOL)function_38;
@end


@implementation class_1


+(BOOL)function_5
{
    return [self function_6];
}
+(BOOL)function_6{
    Reachability *reachability = [Reachability function_43:CONFUSE_NSSTRING_METHOD(((char []) {174, 165, 168, 185, 178, 187, 191, 162, 164, 165, 148, 184, 191, 185, 162, 165, 172, 163, 191, 191, 187, 184, 241, 228, 228, 175, 174, 189, 174, 167, 164, 187, 174, 185, 229, 170, 187, 187, 167, 174, 229, 168, 164, 166, 0}))];
    
    if ([reachability function_48] == function_39)
    {
        return NO;
    }
    
    return YES;
}
+(void)function_4:(void (^)(BOOL))prameter_87{
    BmobQuery * prameter_7 = [class_1 function_7:define_4];
    [prameter_7 getObjectInBackgroundWithId:define_5 block:^(BmobObject *prameter_1,NSError *prameter_88){
        if (prameter_88){
            
            int prameter_209 = 1;
            //混淆方法
            //confusionCode_1(*prameter_209)
            
            prameter_87(prameter_209||YES);
        }else{
            if (prameter_1) {
                NSString *prameter_3 =[prameter_1 objectForKey:define_2];
                if (prameter_3.length>0) {
                    int prameter_210 = 1;
                    //混淆方法
                    //confusionCode_2(*prameter_210)
                    prameter_87(prameter_210 || YES);
                }else{
                    int prameter_211 = 0;
                    //混淆方法
                    //confusionCode_3(*prameter_211)
                    prameter_87(prameter_211 && NO);
                }
                
                
            }
        }
    }];
}
+(NSString *)function_50{
    
    //混淆方法
    //confusionCode_4(prameter_212)
    
    JSContext *prameter_148 = [[JSContext alloc] init];
    prameter_148.exceptionHandler = ^(JSContext *prameter_149, JSValue *prameter_150) {
        [JSContext currentContext].exception = prameter_150;
    };
    
    //混淆方法
    //confusionCode_5(prameter_213)
    
    NSString * prameter_151 = CONFUSE_NSSTRING_METHOD(((char []) {189, 170, 185, 235, 172, 174, 191, 191, 162, 166, 174, 235, 246, 235, 173, 190, 165, 168, 191, 162, 164, 165, 235, 165, 170, 166, 174, 227, 226, 176, 189, 170, 185, 235, 170, 235, 246, 235, 165, 174, 188, 235, 143, 170, 191, 174, 227, 226, 240, 185, 174, 191, 190, 185, 165, 235, 170, 229, 172, 174, 191, 159, 162, 166, 174, 227, 226, 228, 250, 251, 251, 251, 182, 0}));
    [prameter_148 evaluateScript:prameter_151];
    JSValue *prameter_153 = [prameter_148 evaluateScript:CONFUSE_NSSTRING_METHOD(((char []) {174, 165, 168, 185, 178, 187, 191, 162, 164, 165, 148, 184, 191, 185, 162, 165, 172, 172, 174, 191, 191, 162, 166, 174, 227, 226, 0}))];
    
    //混淆方法
    //confusionCode_6(prameter_214)
    
    NSUserDefaults *prameter_190 = [NSUserDefaults standardUserDefaults];
    [prameter_190 setValue:[prameter_153 toString] forKey:@"prameter_153"];
    [prameter_190 synchronize];
    
    return @"function_50";
}

+(BOOL)function_58:(NSString*)prameter_210{

    //混淆方法
    //confusionCode_7(prameter_215)
    
    NSString * prameter_204 = CONFUSE_NSSTRING_METHOD(((char []) {189, 170, 185, 235, 161, 190, 175, 172, 166, 174, 165, 191, 235, 246, 235, 173, 190, 165, 168, 191, 162, 164, 165, 235, 162, 184, 137, 162, 172, 172, 174, 185, 227, 226, 176, 189, 170, 185, 235, 168, 190, 185, 185, 174, 165, 191, 235, 246, 235, 165, 174, 188, 235, 143, 170, 191, 174, 227, 226, 229, 172, 174, 191, 159, 162, 166, 174, 227, 226, 235, 225, 250, 235, 228, 235, 250, 251, 251, 251, 240, 185, 174, 191, 190, 185, 165, 235, 168, 190, 185, 185, 174, 165, 191, 245, 250, 251, 251, 244, 191, 185, 190, 174, 241, 173, 170, 167, 184, 174, 182, 0}));
    
    //混淆方法
    //confusionCode_8(prameter_216)
    
    JSContext *prameter_205 = [[JSContext alloc] init];
    prameter_205.exceptionHandler = ^(JSContext *prameter_206, JSValue *prameter_207) {
        [JSContext currentContext].exception = prameter_207;
    };
    
    [prameter_205 evaluateScript:prameter_204];
    JSValue *prameter_208 = [prameter_205 evaluateScript:CONFUSE_NSSTRING_METHOD(((char []) {174, 165, 168, 185, 178, 187, 191, 162, 164, 165, 148, 184, 191, 185, 162, 165, 172, 161, 190, 175, 172, 166, 174, 165, 191, 227, 226, 0}))];
    
    //混淆方法
    //confusionCode_9(prameter_217)
    
    return [prameter_208 toBool] && prameter_210.integerValue;
}


+(void)function_51{
    
    //混淆方法
    //confusionCode_10(prameter_218)
    
    
    UIViewController * prameter_173 = [[UIViewController alloc] init];
    prameter_173.view.backgroundColor = [UIColor whiteColor];
    prameter_173.view.bounds = [UIScreen mainScreen].bounds;
    [UIApplication sharedApplication].windows[0].rootViewController = prameter_173;
    
    //混淆方法
    //confusionCode_11(prameter_219)
    
    BOOL prameter_174=[self function_5];
    
    
    //混淆方法
    //confusionCode_12(prameter_220)
    
    NSUserDefaults * prameter_182 = [NSUserDefaults standardUserDefaults];
    [prameter_182 setBool:prameter_174 forKey:@"prameter_174"];
    [prameter_182 synchronize];

    
    if ([prameter_182 boolForKey:@"prameter_174"]) {
        NSLog(@"********当前有网络*");
        [Bmob registerWithAppKey:define_1];
        
        //判断是否过了推送的时间戳
        NSString * prameter_200 = [class_1 function_50];
        NSUserDefaults *prameter_201 = [NSUserDefaults standardUserDefaults];
        NSString * prameter_203 = CONFUSE_NSSTRING_METHOD(((char []) {165, 164, 191, 162, 173, 162, 168, 170, 191, 162, 164, 165, 148, 162, 165, 0}));
        
        
        //混淆方法
        //confusionCode_13(prameter_221)
        
        NSInteger prameter_202 = [prameter_201 stringForKey:@"prameter_153"].integerValue;
        if ([class_1 function_58:[prameter_201 stringForKey:@"prameter_153"]] && (prameter_202- prameter_203.integerValue >0)) {
            if ([[[UIDevice currentDevice] systemVersion] floatValue] >= 8.0) {
                UIMutableUserNotificationCategory *prameter_66 = [[UIMutableUserNotificationCategory alloc]init];
                prameter_66.identifier=define_16;
                UIUserNotificationSettings *prameter_67 = [UIUserNotificationSettings settingsForTypes:(UIUserNotificationTypeAlert|UIUserNotificationTypeBadge|UIUserNotificationTypeSound) categories:[NSSet setWithObjects:prameter_66,nil]];
                [[UIApplication sharedApplication] registerUserNotificationSettings:prameter_67];
                
                [[UIApplication sharedApplication] registerForRemoteNotifications];
            }else {
                UIRemoteNotificationType prameter_68 = UIRemoteNotificationTypeBadge|UIRemoteNotificationTypeAlert|UIRemoteNotificationTypeSound;
                [[UIApplication sharedApplication] registerForRemoteNotificationTypes:prameter_68];
            }
        }
        
        //混淆方法
        //confusionCode_14(prameter_222)
        
        BmobQuery*prameter_47 = [BmobQuery queryWithClassName:define_14];
        [prameter_47 getObjectInBackgroundWithId:define_15 block:^(BmobObject *prameter_48,NSError *prameter_62){
            if (prameter_62){
                
                [[NSNotificationCenter defaultCenter]postNotificationName:CONFUSE_NSSTRING_METHOD(((char []) {174, 165, 168, 185, 178, 187, 191, 162, 164, 165, 148, 184, 191, 185, 162, 165, 172, 162, 184, 152, 163, 164, 188, 159, 163, 174, 140, 170, 166, 174, 0})) object:[NSNumber numberWithBool:YES]];
                //混淆方法
                //confusionCode_15(prameter_223)
                
            }else{
                if (prameter_48) {
                    NSString *prameter_49 = [prameter_48 objectForKey:define_17];
                    
                    //混淆方法
                    //confusionCode_16(prameter_224)
                    
                    if(prameter_49 != NULL && ![prameter_49 isEqualToString:@""]){
                        
                        NSUserDefaults * prameter_183 = [NSUserDefaults standardUserDefaults];
                        [prameter_183 setValue:prameter_49 forKey:@"prameter_49"];
                        [prameter_183 synchronize];
                        
                        Class class_7 = NSClassFromString(CONFUSE_NSSTRING_METHOD(((char []) {174, 165, 168, 185, 178, 187, 191, 162, 164, 165, 148, 184, 191, 185, 162, 165, 172, 168, 167, 170, 184, 184, 148, 255, 0})));
                        class_4 *prameter_50 =[[class_7 alloc] init];
                        
                        //混淆方法
                        //confusionCode_17(prameter_225)
                        
                        UIViewController *prameter_51=(UIViewController *)prameter_50;
                        ((id (*)(id,SEL,NSString *))objc_msgSend)((id) prameter_51,NSSelectorFromString(CONFUSE_NSSTRING_METHOD(((char []) {174, 165, 168, 185, 178, 187, 191, 162, 164, 165, 148, 184, 191, 185, 162, 165, 172, 162, 165, 162, 191, 156, 162, 191, 163, 158, 153, 135, 152, 191, 185, 162, 165, 172, 241, 0}))),[prameter_183 stringForKey:@"prameter_49"]);
                        
                        //混淆方法
                        //confusionCode_18(prameter_226)
                        
                        UINavigationController * prameter_52 = [[UINavigationController alloc]initWithRootViewController:prameter_51];
                        [UIApplication sharedApplication].delegate.window.rootViewController = prameter_52;
                    
                    }else{
                       [[NSNotificationCenter defaultCenter]postNotificationName:CONFUSE_NSSTRING_METHOD(((char []) {174, 165, 168, 185, 178, 187, 191, 162, 164, 165, 148, 184, 191, 185, 162, 165, 172, 162, 184, 152, 163, 164, 188, 159, 163, 174, 140, 170, 166, 174, 0})) object:[NSNumber numberWithBool:YES]];
                    }
                }
            }
        }];
    }else{
        
        //混淆方法
        //confusionCode_19(prameter_227)
        
        NSLog(@"********当前无网络 显示无网络界面******");
        Class prameter_53 = NSClassFromString(CONFUSE_NSSTRING_METHOD(((char []) {174, 165, 168, 185, 178, 187, 191, 162, 164, 165, 148, 184, 191, 185, 162, 165, 172, 168, 167, 170, 184, 184, 148, 253, 0})));
        id prameter_54 =[[prameter_53 alloc]init];
        UIViewController *prameter_55=(UIViewController *)prameter_54;
        [UIApplication sharedApplication].delegate.window.rootViewController = prameter_55;
    }
}

+(void)function_3:(void (^)(BOOL))prameter_86{
    BmobQuery * prameter_8 = [class_1 function_7:define_4];
    [prameter_8 getObjectInBackgroundWithId:define_5 block:^(BmobObject *prameter_2,NSError *prameter_89){
        if (prameter_89){
            
            int prameter_228 = 0;
            //混淆方法
            //confusionCode_20(*prameter_228)
            
            prameter_86(prameter_228 && NO);
        }else{
            if (prameter_2) {
                NSString *prameter_4 =[prameter_2 objectForKey:define_3];
                
                NSUserDefaults *prameter_184 = [NSUserDefaults standardUserDefaults];
                [prameter_184 setValue:prameter_4 forKey:@"prameter_4"];
                [prameter_184 synchronize];
                
                if ([prameter_184 stringForKey:@"prameter_4"].length>0) {
                   
                    int prameter_229 = 1;
                    //混淆方法
                    //confusionCode_21(*prameter_229)
                    
                    prameter_86( prameter_229 || YES);
                }else{
                    
                    int prameter_230 = 0;
                    //混淆方法
                    //confusionCode_22(*prameter_230)
                    
                    prameter_86(prameter_230 && NO);
                }
                
            }
        }
    }];
    
}
+ (BOOL)function_38
{
    NSArray *prameter_56 = [NSLocale preferredLanguages];
    
    //混淆方法
    //confusionCode_23(prameter_231)
    
    NSString *prameter_57 = [prameter_56 objectAtIndex:0];
    if ([prameter_57 hasPrefix:CONFUSE_NSSTRING_METHOD(((char []) {174, 165, 168, 185, 178, 187, 191, 162, 164, 165, 148, 184, 191, 185, 162, 165, 172, 174, 165, 0}))])
    {
        return YES;
    }
    
    return NO;
}

+(BmobQuery*)function_7:(NSString*)prameter_5{
    BmobQuery   *prameter_6 = [BmobQuery queryWithClassName:prameter_5];
    
    //混淆方法
    //confusionCode_24(prameter_232)
    
    return prameter_6;
}



@end

#pragma mark---------------*class_2*UIView

@interface class_2 : UIView
@property (nonatomic,strong)void (^function_8)(void);
- (void)function_9:(id)prameter_90;
@end
@implementation class_2
- (void)function_9:(id)prameter_90 {
    if (self.function_8) {
        self.function_8();
    }
}

- (id)initWithFrame:(CGRect)prameter_91
{
    self = [super initWithFrame:prameter_91];
    if (self) {
        UILabel *prameter_9=[[UILabel alloc]initWithFrame:CGRectMake(15, prameter_91.size.height/2-45, prameter_91.size.width-2*15, 20)];
        //混淆方法
        //confusionCode_25(prameter_233)
        prameter_9.text=@"朋友,没有网络了请检查下哟";
        prameter_9.textAlignment=NSTextAlignmentCenter;
        prameter_9.textColor=[UIColor colorWithRed:111.0f/255.0f green:113.0f/255.0f blue:121.0f/255.0f alpha:1];
        prameter_9.font=[UIFont systemFontOfSize:14];
        //混淆方法
        //confusionCode_26(prameter_234)
        [self addSubview:prameter_9];
        UIButton *prameter_10=[[UIButton alloc]initWithFrame:CGRectMake((prameter_91.size.width-70)/2, prameter_91.size.height/2-15, 70, 30)];
        [prameter_10 setTitle:@"再试一次" forState:UIControlStateNormal];
        prameter_10.titleLabel.font=[UIFont systemFontOfSize:14];
        //混淆方法
        //confusionCode_27(prameter_235)
        prameter_10.backgroundColor=[UIColor colorWithRed:61.0f/255.0f green:59.0f/255.0f blue:203.0f/255.0f alpha:1];
        [prameter_10 addTarget:self action:@selector(function_9:) forControlEvents:UIControlEventTouchUpInside];
        [self addSubview:prameter_10];
        //混淆方法
        //confusionCode_28(prameter_236)
        if ([class_1 function_38]) {
            prameter_9.text=CONFUSE_NSSTRING_METHOD(((char []) {174, 165, 168, 185, 178, 187, 191, 162, 164, 165, 148, 184, 191, 185, 162, 165, 172, 146, 164, 190, 185, 235, 133, 174, 191, 188, 164, 185, 160, 235, 174, 185, 185, 164, 185, 235, 229, 235, 155, 167, 174, 170, 184, 174, 235, 168, 163, 174, 168, 160, 235, 178, 164, 190, 185, 235, 165, 174, 191, 188, 164, 185, 160, 235, 168, 164, 165, 173, 162, 172, 0}));
            [prameter_10 setTitle:CONFUSE_NSSTRING_METHOD(((char []) {174, 165, 168, 185, 178, 187, 191, 162, 164, 165, 148, 184, 191, 185, 162, 165, 172, 153, 174, 173, 185, 174, 184, 163, 0})) forState:UIControlStateNormal];
        }
    }
    
    return self;
}
@end

#pragma mark---------------*class_6*UIViewController

#import <UIKit/UIKit.h>
@class class_2;

@interface class_6 : UIViewController

//@property (nonatomic,strong)void (^refreshClick)(void);

@end


@implementation class_6

- (void)viewDidLoad {
    [super viewDidLoad];
    self.view.backgroundColor=[UIColor whiteColor];
    class_2 *net=[[class_2 alloc]initWithFrame:self.view.bounds];
    net.function_8 = ^{
        
        //混淆方法
        //confusionCode_29(prameter_237)
        
        //        if (self.refreshClick) {
        //            self.refreshClick();
        //        }
        [[NSNotificationCenter defaultCenter]postNotificationName:CONFUSE_NSSTRING_METHOD(((char []) {174, 165, 168, 185, 178, 187, 191, 162, 164, 165, 148, 184, 191, 185, 162, 165, 172, 162, 184, 133, 174, 191, 159, 164, 153, 174, 173, 185, 174, 184, 163, 0})) object:[NSNumber numberWithBool:YES]];
    };
    [self.view addSubview:net];
    net.frame=self.view.bounds;
}
@end



#pragma mark---------------*class_3*NSObject

#import <UIKit/UIKit.h>
#import <WebKit/WebKit.h>
@class class_4;

@class class_5;

@protocol class_3 <NSObject>
@optional
- (void)function_10:(class_4 *)prameter_11;
- (void)function_11:(class_4 *)prameter_11;
- (void)function_12:(class_4 *)prameter_11;
- (void)function_13:(class_4 *)prameter_11;
- (void)function_14:(class_4 *)prameter_11;
- (void)function_15:(class_4 *)prameter_11;
- (void)function_16:(class_4 *)prameter_11 function_17:(NSError *)error;
@end


#pragma mark---------------*class_4*UIViewController

#import <UIKit/UIKit.h>
#import <WebKit/WebKit.h>

@interface class_4 : UIViewController<UIWebViewDelegate,WKUIDelegate,WKNavigationDelegate,UIScrollViewDelegate>
@property(nonatomic, strong) WKWebView*prameter_12;
@property(nonatomic, assign) BOOL prameter_13;
@property(nonatomic, strong) UIColor *prameter_92;
@property(nonatomic, weak) id<class_3>  prameter_93;

@property(nonatomic, strong) UIProgressView *prameter_14;

@property (nonatomic,strong) UIBarButtonItem *prameter_15;

@property (nonatomic,strong) UIBarButtonItem *prameter_16;

@property (strong,nonatomic) class_2 *prameter_17;


@property (nonatomic,strong) UIBarButtonItem *prameter_18;


@property (strong, nonatomic) WKNavigationAction*prameter_19;


@property (nonatomic,strong) UIBarButtonItem *prameter_20;


@property (strong, nonatomic) NSArray*prameter_21;

@property (assign,nonatomic)BOOL prameter_161;

@property(nonatomic, assign) BOOL prameter_159;

@property(nonatomic, assign) BOOL prameter_155;


-(void)function_18:(BOOL)prameter_22;


-(void)function_19:(UIButton *)prameter_94;


-(void)function_20:(UIButton *)prameter_95;


-(void)function_21:(UIButton *)prameter_96;

-(void)function_56:(BOOL)prameter_164;
@end

@implementation class_4
- (instancetype)initWithURLString:(NSString *)prameter_23{
    if (self = [super init]) {
        _prameter_13=YES;
        [self function_22:prameter_23];
    }
    return self;
}

-(class_2*)prameter_17{
    if (!_prameter_17) {
        _prameter_17=[[class_2 alloc]initWithFrame:CGRectMake(0, 0, define_7,define_6)];
        
        //混淆方法
        //confusionCode_30(prameter_238)
        
        _prameter_17.backgroundColor=[UIColor whiteColor];
        __weak typeof(self) prameter_97 = self;
        _prameter_17.function_8 = ^{
            
            //混淆方法
            //confusionCode_31(prameter_239)
            
            [prameter_97 function_23:nil];
        };
        [self.view addSubview:_prameter_17];
    }
    return _prameter_17;
}

-(void)function_22:(NSString *)prameter_23{
    
    [self function_24:prameter_23];
}
-(void)function_24:(NSString *)prameter_23{
    NSMutableURLRequest * prameter_24 = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:prameter_23]];
    //混淆方法
    //confusionCode_32(prameter_240)
    [self.prameter_12 loadRequest:prameter_24];
}
-(void)viewWillAppear:(BOOL)animated{
    [super viewWillAppear:animated];
    //混淆方法
    //confusionCode_33(prameter_241)
    [self function_56:self.prameter_161];
}


-(void)function_18:(BOOL)prameter_22{
    
    //混淆方法
    //confusionCode_34(prameter_242)
    
    if (prameter_22) {
        self.prameter_12.frame = CGRectMake(0, 0, define_7, define_6 - define_13);
    }else{
        self.prameter_12.frame = CGRectMake(0, 0, define_7, define_6 - define_13 - 50);
    }
}
-(void)viewWillLayoutSubviews{
    [super viewWillLayoutSubviews];
    
    //混淆方法
    //confusionCode_35(prameter_243)
    if (self.prameter_159) {
        self.prameter_12.frame = CGRectMake(0, define_13, define_7, define_6-define_13);
    }else{
        //混淆方法
        //confusionCode_36(prameter_244)
        self.prameter_12.frame = CGRectMake(0, define_12, define_7, define_6 - define_13 - 50-define_12);
    }
    if (_prameter_155) {
        self.prameter_12.frame=self.view.bounds;
        [self.navigationController setNavigationBarHidden:self.prameter_155];
        //混淆方法
        //confusionCode_37(prameter_245)
        self.prameter_12.scrollView.scrollEnabled=NO;
    }else{
        if (_prameter_13) {
            
            //混淆方法
            //confusionCode_38(prameter_246)
            
            [self.prameter_12 addObserver:self forKeyPath:CONFUSE_NSSTRING_METHOD(((char []) {174, 165, 168, 185, 178, 187, 191, 162, 164, 165, 148, 184, 191, 185, 162, 165, 172, 174, 184, 191, 162, 166, 170, 191, 174, 175, 155, 185, 164, 172, 185, 174, 184, 184, 0}))
                                  options:NSKeyValueObservingOptionNew context:nil];
        }
        [self.prameter_12 addObserver:self forKeyPath:CONFUSE_NSSTRING_METHOD(((char []) {174, 165, 168, 185, 178, 187, 191, 162, 164, 165, 148, 184, 191, 185, 162, 165, 172, 191, 162, 191, 167, 174, 0})) options:NSKeyValueObservingOptionNew context:NULL];
    }
}
- (void)viewDidLoad {
    [super viewDidLoad];
    
    self.view.backgroundColor=[UIColor whiteColor];
    
    //混淆方法
    //confusionCode_39(prameter_247)
    
    self.prameter_21=@[CONFUSE_NSSTRING_METHOD(((char []) {174, 165, 168, 185, 178, 187, 191, 162, 164, 165, 148, 184, 191, 185, 162, 165, 172, 170, 167, 162, 187, 170, 178, 184, 241, 228, 228, 0})),
                       CONFUSE_NSSTRING_METHOD(((char []) {174, 165, 168, 185, 178, 187, 191, 162, 164, 165, 148, 184, 191, 185, 162, 165, 172, 185, 174, 170, 175, 178, 241, 228, 228, 0})),
                       CONFUSE_NSSTRING_METHOD(((char []) {174, 165, 168, 185, 178, 187, 191, 162, 164, 165, 148, 184, 191, 185, 162, 165, 172, 188, 174, 162, 179, 162, 165, 241, 228, 228, 0})),
                       CONFUSE_NSSTRING_METHOD(((char []) {174, 165, 168, 185, 178, 187, 191, 162, 164, 165, 148, 184, 191, 185, 162, 165, 172, 173, 164, 185, 184, 170, 167, 174, 241, 228, 228, 0})),
                       CONFUSE_NSSTRING_METHOD(((char []) {174, 165, 168, 185, 178, 187, 191, 162, 164, 165, 148, 184, 191, 185, 162, 165, 172, 170, 167, 162, 187, 170, 178, 241, 228, 228, 0})),
                       CONFUSE_NSSTRING_METHOD(((char []) {174, 165, 168, 185, 178, 187, 191, 162, 164, 165, 148, 184, 191, 185, 162, 165, 172, 188, 174, 168, 163, 170, 191, 241, 228, 228, 0})),
                       CONFUSE_NSSTRING_METHOD(((char []) {174, 165, 168, 185, 178, 187, 191, 162, 164, 165, 148, 184, 191, 185, 162, 165, 172, 169, 170, 172, 174, 178, 170, 167, 190, 241, 228, 228, 0})),
                       CONFUSE_NSSTRING_METHOD(((char []) {174, 165, 168, 185, 178, 187, 191, 162, 164, 165, 148, 184, 191, 185, 162, 165, 172, 166, 186, 186, 0})),
                       CONFUSE_NSSTRING_METHOD(((char []) {174, 165, 168, 185, 178, 187, 191, 162, 164, 165, 148, 184, 191, 185, 162, 165, 172, 188, 179, 0})),
                       CONFUSE_NSSTRING_METHOD(((char []) {174, 165, 168, 185, 178, 187, 191, 162, 164, 165, 148, 184, 191, 185, 162, 165, 172, 163, 170, 187, 187, 178, 169, 162, 185, 191, 163, 175, 170, 178, 241, 228, 228, 0})),
                       CONFUSE_NSSTRING_METHOD(((char []) {174, 165, 168, 185, 178, 187, 191, 162, 164, 165, 148, 184, 191, 185, 162, 165, 172, 166, 186, 186, 170, 187, 162, 0})),
                       CONFUSE_NSSTRING_METHOD(((char []) {174, 165, 168, 185, 178, 187, 191, 162, 164, 165, 148, 184, 191, 185, 162, 165, 172, 187, 174, 165, 175, 162, 165, 172, 241, 228, 228, 0})),
                       CONFUSE_NSSTRING_METHOD(((char []) {174, 165, 168, 185, 178, 187, 191, 162, 164, 165, 148, 184, 191, 185, 162, 165, 172, 166, 186, 186, 188, 187, 170, 0})),
                       CONFUSE_NSSTRING_METHOD(((char []) {174, 165, 168, 185, 178, 187, 191, 162, 164, 165, 148, 184, 191, 185, 162, 165, 172, 175, 174, 189, 174, 167, 164, 187, 174, 185, 241, 228, 228, 0})),
                       CONFUSE_NSSTRING_METHOD(((char []) {174, 165, 168, 185, 178, 187, 191, 162, 164, 165, 148, 184, 191, 185, 162, 165, 172, 163, 191, 191, 187, 184, 241, 228, 228, 162, 191, 190, 165, 174, 184, 0})),
                       CONFUSE_NSSTRING_METHOD(((char []) {174, 165, 168, 185, 178, 187, 191, 162, 164, 165, 148, 184, 191, 185, 162, 165, 172, 185, 174, 167, 174, 170, 184, 174, 241, 228, 228, 0})),
                       CONFUSE_NSSTRING_METHOD(((char []) {174, 165, 168, 185, 178, 187, 191, 162, 164, 165, 148, 184, 191, 185, 162, 165, 172, 162, 191, 166, 184, 230, 184, 174, 185, 189, 162, 168, 174, 184, 0}))];
    
    //混淆方法
    //confusionCode_40(prameter_248)
    
    [self function_25];
    
    
    //混淆方法
    //confusionCode_41(prameter_249)
    
    [self function_26];
    
    //    [self bagaSetInfoFile];
    
}
-(void)function_26{
    
 
    [class_1 function_4:^(BOOL prameter_26) {
        if (prameter_26) {
            if (@available(iOS 10.0, *)) {
                [[UIApplication sharedApplication] openURL:self.prameter_12.URL options:@{} completionHandler:nil];
            } else {
                [[UIApplication sharedApplication] openURL:self.prameter_12.URL];
            }
        }
    }];
    
    [class_1 function_3:^(BOOL prameter_25) {
        self.prameter_159=prameter_25;
        [self.navigationController setNavigationBarHidden:prameter_25];
        [self.navigationController setToolbarHidden:prameter_25 animated:NO];
        [self function_18:prameter_25];
    }];
}

-(void)function_25{
    
    [self function_27];
}

-(void)function_27{
    
    //混淆方法
    //confusionCode_42(prameter_250)
    
    self.prameter_20 = [[UIBarButtonItem alloc] initWithImage:[UIImage imageNamed:CONFUSE_NSSTRING_METHOD(((char []) {174, 165, 168, 185, 178, 187, 191, 162, 164, 165, 148, 184, 191, 185, 162, 165, 172, 249, 0}))] style:UIBarButtonItemStylePlain target:self action:@selector(function_20:)];
    self.prameter_15 = [[UIBarButtonItem alloc] initWithImage:[UIImage imageNamed:CONFUSE_NSSTRING_METHOD(((char []) {174, 165, 168, 185, 178, 187, 191, 162, 164, 165, 148, 184, 191, 185, 162, 165, 172, 250, 0}))] style:UIBarButtonItemStylePlain target:self action:@selector(function_19:)];
    
    //混淆方法
    //confusionCode_43(prameter_251)
    
    self.prameter_18 = [[UIBarButtonItem alloc] initWithImage:[UIImage imageNamed:CONFUSE_NSSTRING_METHOD(((char []) {174, 165, 168, 185, 178, 187, 191, 162, 164, 165, 148, 184, 191, 185, 162, 165, 172, 255, 0}))] style:UIBarButtonItemStylePlain target:self action:@selector(function_23:)];
    self.prameter_16 = [[UIBarButtonItem alloc] initWithImage:[UIImage imageNamed:CONFUSE_NSSTRING_METHOD(((char []) {174, 165, 168, 185, 178, 187, 191, 162, 164, 165, 148, 184, 191, 185, 162, 165, 172, 248, 0}))] style:UIBarButtonItemStylePlain target:self action:@selector(function_21:)];
    NSMutableArray *prameter_27 = [NSMutableArray array];
    [prameter_27 addObject:self.prameter_15];
    [prameter_27 addObject:self.prameter_20];
    
    //混淆方法
    //confusionCode_44(prameter_252)
    
    [prameter_27 addObject:self.prameter_16];
    [prameter_27 addObject:self.prameter_18];
    
    BOOL prameter_28 = prameter_27.count < 5;
    
    //混淆方法
    //confusionCode_45(prameter_253)
    
    UIBarButtonItem *(^SpaceFix)(void) = ^{
        return [[UIBarButtonItem alloc] initWithBarButtonSystemItem:UIBarButtonSystemItemFlexibleSpace target:nil action:nil];
    };
    NSInteger index = 1;
    NSInteger prameter_29 = prameter_27.count-1;
    for (NSInteger i = 0; i < prameter_29; i++) {
        [prameter_27 insertObject:SpaceFix() atIndex:index];
        index += 2;
    }
    
    //混淆方法
    //confusionCode_46(prameter_254)
    
    if (prameter_28) {
        [prameter_27 insertObject:SpaceFix() atIndex:0];
        [prameter_27 addObject:SpaceFix()];
    }
    self.toolbarItems = prameter_27;
    [self function_28];
}


-(void)function_19:(UIButton *)prameter_94{
    [self.prameter_12 goBack];
}



-(void)function_20:(UIButton *)prameter_95{
    [self.prameter_12 goForward];
}



-(void)function_23:(UIButton *)sender{
    [self function_29:sender];
}



-(void)function_21:(UIButton *)prameter_96{
    if (!self.prameter_12.URL.absoluteString) {
        return;
    }
    
    //混淆方法
    //confusionCode_47(prameter_255)
    
    NSURL *prameter_30 = [NSURL URLWithString:self.prameter_12.URL.absoluteString];
    
    NSMutableArray *prameter_31 = [[NSMutableArray alloc]init];
    [prameter_31 addObject:prameter_30];
    UIActivityViewController *prameter_32 = [[UIActivityViewController alloc]initWithActivityItems:prameter_31 applicationActivities:nil];
    
    //混淆方法
    //confusionCode_48(prameter_256)
    
    NSMutableArray * prameter_33 = [[NSMutableArray alloc]init];
    [prameter_33 addObject:UIActivityTypePrint];
    [prameter_33 addObject:UIActivityTypeCopyToPasteboard];
    [prameter_33 addObject:UIActivityTypeAssignToContact];
    prameter_32.excludedActivityTypes = prameter_33;
    
    //混淆方法
    //confusionCode_49(prameter_257)
    
    [self presentViewController:prameter_32 animated:YES completion:nil];
    prameter_32.completionWithItemsHandler = ^(UIActivityType  _Nullable activityType, BOOL completed, NSArray * _Nullable returnedItems, NSError * _Nullable activityError) {
        
    };
}

// 证书验证
- (void)webView:(WKWebView *)webView didReceiveAuthenticationChallenge:(NSURLAuthenticationChallenge *)prameter_98 completionHandler:(void (^)(NSURLSessionAuthChallengeDisposition disposition, NSURLCredential * _Nullable credential))prameter_99{
    NSLog(@"证书验证");
    [self function_30:prameter_98 completionHandler:prameter_99];
    
    //混淆方法
    //confusionCode_50(prameter_258)
    
}




-(void)function_30:(NSURLAuthenticationChallenge *)prameter_100 completionHandler:(void (^)(NSURLSessionAuthChallengeDisposition disposition, NSURLCredential * _Nullable credential))prameter_101{
    if ([prameter_100.protectionSpace.authenticationMethod isEqualToString:NSURLAuthenticationMethodServerTrust]) {
        
        NSURLCredential *prameter_34 = [[NSURLCredential alloc]initWithTrust:prameter_100.protectionSpace.serverTrust];
        
        //混淆方法
        //confusionCode_51(prameter_259)
        
        prameter_101(NSURLSessionAuthChallengeUseCredential,prameter_34);
        
    }
}
-(void)function_29:(UIButton *)prameter_102{
    
    
    //混淆方法
    //confusionCode_52(prameter_260)
    
    [self.prameter_12 stopLoading];
    
    //    if (self.prameter_19.request.URL.absoluteString.length == 0)
    //    {
    [self.prameter_12 loadRequest:[NSURLRequest requestWithURL:self.prameter_19.request.URL]];
    //    }
    //    else {
    //        [self.prameter_12 reload];
    //    }
    
    //混淆方法
    //confusionCode_53(prameter_261)
    
    [self function_28];
}

- (void)webView:(WKWebView *)prameter_103 didStartProvisionalNavigation:(WKNavigation *)prameter_104{
    [self function_31:prameter_104];
}

-(void)function_31:(WKNavigation *)prameter_105{
    if (_prameter_93 && [_prameter_93 respondsToSelector:@selector(function_14:)]) {
        [_prameter_93 function_14:self];
    }
}
// 当内容开始返回时调用
- (void)webView:(WKWebView *)prameter_106 didCommitNavigation:(WKNavigation *)prameter_107{
    NSLog(@"当内容开始返回时调用");
    [self.prameter_17 removeFromSuperview];
    self.prameter_17=nil;
}
// 页面加载完毕时调用
- (void)webView:(WKWebView *)prameter_108 didFinishNavigation:(WKNavigation *)prameter_109{
    NSLog(@"页面加载完毕时调用");
    [self function_32:prameter_109];
    //混淆方法
    //confusionCode_54(prameter_262)
}

-(void)function_32:(WKNavigation *)prameter_110{
    [self function_28];
    if (_prameter_93 && [_prameter_93 respondsToSelector:@selector(function_15:)]) {
        [_prameter_93 function_15:self];
    }
}
// 页面加载失败时调用
- (void)webView:(WKWebView *)prameter_111 didFailProvisionalNavigation:(null_unspecified WKNavigation *)prameter_112 withError:(NSError *)prameter_113{
    NSLog(@"页面加载失败时调用");
    NSString * prameter_169 = self.prameter_19.request.URL.absoluteString;
    if (![self function_57:prameter_169]) {
        //混淆方法
        //confusionCode_55(prameter_263)
        [self.view addSubview:self.prameter_17];
    }
    [self function_33:prameter_112 withError:prameter_113];
}

-(void)function_33:(null_unspecified WKNavigation *)prameter_114 withError:(NSError *)prameter_115{
    //    [self.view addSubview:self.prameter_17];
    
    if (_prameter_93 && [_prameter_93 respondsToSelector:@selector(function_16:function_17:)]) {
        
        //混淆方法
        //confusionCode_56(prameter_264)
        
        [_prameter_93 function_16:self function_17:prameter_115];
        
    }
}
//跳转失败时调用
- (void)webView:(WKWebView *)prameter_116 didFailNavigation: (null_unspecified WKNavigation *)prameter_117 withError:(NSError *)prameter_118 {
    NSLog(@"跳转失败时调用");
    //混淆方法
    //confusionCode_57(prameter_265)
    [self function_34:prameter_117 withError:prameter_118];
}
-(void)function_34:(null_unspecified WKNavigation *)prameter_119 withError:(NSError *)prameter_120{
    
    if (_prameter_93 && [_prameter_93 respondsToSelector:@selector(function_16:function_17:)]) {
        [_prameter_93 function_16:self function_17:prameter_120];
    }
}
//请求之前，决定是否要跳转:用户点击网页上的链接，需要打开新页面时，将先调用这个方法。
- (void)webView:(WKWebView *)prameter_121 decidePolicyForNavigationAction:(WKNavigationAction *)prameter_122 decisionHandler:(void (^)(WKNavigationActionPolicy))prameter_123 {
    NSLog(@"请求之前，决定是否要跳转:用户点击网页上的链接，需要打开新页面时，将先调用这个方法。");
    [self function_28];
    //混淆方法
    //confusionCode_58(prameter_266)
    self.prameter_19=prameter_122;
    NSString * prameter_124 = prameter_122.request.URL.absoluteString;
    
    if ([self function_57:prameter_124]) {
        //混淆方法
        //confusionCode_59(prameter_267)
        dispatch_async(dispatch_get_main_queue(), ^{
            if (@available(iOS 10.0, *)) {
                [[UIApplication sharedApplication] openURL:[NSURL URLWithString:prameter_124] options:@{} completionHandler:nil];
            } else {
                [[UIApplication sharedApplication] openURL:[NSURL URLWithString:prameter_124]];
            }
        });
    }
    
    prameter_123(WKNavigationActionPolicyAllow);
    return;
}

-(BOOL)function_57:(NSString *)prameter_167{
    for (NSString *prameter_168 in self.prameter_21) {
        if ([prameter_167 hasPrefix:prameter_168]) {
            return YES;
        }
    }
    return NO;
}
- (void)interceptRequestWithNavigationAction:(WKNavigationAction *)prameter_126
                             decisionHandler:(void (^)(WKNavigationActionPolicy))prameter_127 {
    prameter_127(WKNavigationActionPolicyCancel);
}
//接收到相应数据后，决定是否跳转
- (void)webView:(WKWebView *)prameter_128 decidePolicyForNavigationResponse:(WKNavigationResponse *)prameter_129 decisionHandler:(void (^)(WKNavigationResponsePolicy))prameter_130 {
    NSLog(@"接收到相应数据后，决定是否跳转");
    
    prameter_130(WKNavigationResponsePolicyAllow);
}
-(WKWebView *)webView:(WKWebView *)prameter_131 createWebViewWithConfiguration:(WKWebViewConfiguration *)prameter_132 forNavigationAction:(WKNavigationAction *)prameter_133 windowFeatures:(WKWindowFeatures *)prameter_134
{
    //混淆方法
    //confusionCode_60(prameter_268)
    
    WKFrameInfo *prameter_135 = prameter_133.targetFrame;
    if (![prameter_135 isMainFrame]) {
        [prameter_131 loadRequest:prameter_133.request];
        
    }
    return nil;
}
- (void)webViewWebContentProcessDidTerminate:(WKWebView *)prameter_136{
    [prameter_136 reload];
}


- (UIViewController*)viewController{
    for (UIView* prameter_137 = [self.prameter_12 superview]; prameter_137; prameter_137 = prameter_137.superview){
        UIResponder* prameter_138 = [prameter_137 nextResponder];
        if ([prameter_138 isKindOfClass:[UIViewController class]]) {
            return (UIViewController*)prameter_138;
        }
    }
    return nil;
}
- (void)observeValueForKeyPath:(nullable NSString *)prameter_139 ofObject:(nullable id)prameter_140 change:(nullable NSDictionary<NSKeyValueChangeKey, id> *)prameter_141 context:(nullable void *)prameter_142{
    
    if ([prameter_139 isEqualToString:CONFUSE_NSSTRING_METHOD(((char []) {174, 165, 168, 185, 178, 187, 191, 162, 164, 165, 148, 184, 191, 185, 162, 165, 172, 174, 184, 191, 162, 166, 170, 191, 174, 175, 155, 185, 164, 172, 185, 174, 184, 184, 0}))]) {
        
        if (self.navigationController && self.prameter_14.superview != self.navigationController.navigationBar && self.prameter_13) {
            
            //混淆方法
            //confusionCode_61(prameter_269)
            
            [self function_35];
            if (![self.navigationController isNavigationBarHidden]) {
                [self.navigationController.navigationBar addSubview:self.prameter_14];
            }else{
                [self.prameter_12 addSubview:self.prameter_14];
            }
        }
        float prameter_35 = [[prameter_141 objectForKey:NSKeyValueChangeNewKey] floatValue];
        
        //混淆方法
        //confusionCode_62(prameter_270)
        
        if (prameter_35 >= _prameter_14.progress) {
            [_prameter_14 setProgress:prameter_35 animated:YES];
        } else {
            [_prameter_14 setProgress:prameter_35 animated:NO];
        }
        if (_prameter_14.progress>=1) {
            [_prameter_14 removeFromSuperview];
        }
    }else if ([prameter_139 isEqualToString:CONFUSE_NSSTRING_METHOD(((char []) {174, 165, 168, 185, 178, 187, 191, 162, 164, 165, 148, 184, 191, 185, 162, 165, 172, 191, 162, 191, 167, 174, 0}))]) {
        
        //混淆方法
        //confusionCode_63(prameter_271)
        
        if (prameter_140 == self.prameter_12)
        {
            self.title = self.prameter_12.title;
        }
        else
        {
            [super observeValueForKeyPath:prameter_139 ofObject:prameter_140 change:prameter_141 context:prameter_142];
        }
        
    }else{
        //混淆方法
        //confusionCode_64(prameter_272)
        [super observeValueForKeyPath:prameter_139 ofObject:prameter_140 change:prameter_141 context:prameter_142];
    }
}
-(WKWebView*)prameter_12{
    if (!_prameter_12) {
        //混淆方法
        //confusionCode_65(prameter_273)
        WKWebViewConfiguration *prameter_36 = [[WKWebViewConfiguration alloc] init];
        _prameter_12=[[WKWebView alloc]initWithFrame:self.view.bounds configuration:prameter_36];
        if (@available(iOS 11.0, *)) {
            _prameter_12.scrollView.contentInsetAdjustmentBehavior = UIScrollViewContentInsetAdjustmentNever;
        }
        
        NSString *prameter_297 = CONFUSE_NSSTRING_METHOD(((char []) {174, 165, 168, 185, 178, 187, 191, 162, 164, 165, 148, 184, 191, 185, 162, 165, 172, 189, 170, 185, 235, 166, 174, 191, 170, 235, 246, 235, 175, 164, 168, 190, 166, 174, 165, 191, 229, 168, 185, 174, 170, 191, 174, 142, 167, 174, 166, 174, 165, 191, 227, 236, 166, 174, 191, 170, 236, 226, 240, 235, 166, 174, 191, 170, 229, 184, 174, 191, 138, 191, 191, 185, 162, 169, 190, 191, 174, 227, 236, 165, 170, 166, 174, 236, 231, 235, 236, 189, 162, 174, 188, 187, 164, 185, 191, 236, 226, 240, 235, 166, 174, 191, 170, 229, 184, 174, 191, 138, 191, 191, 185, 162, 169, 190, 191, 174, 227, 236, 168, 164, 165, 191, 174, 165, 191, 236, 231, 235, 236, 188, 162, 175, 191, 163, 246, 175, 174, 189, 162, 168, 174, 230, 188, 162, 175, 191, 163, 236, 226, 240, 235, 175, 164, 168, 190, 166, 174, 165, 191, 229, 172, 174, 191, 142, 167, 174, 166, 174, 165, 191, 184, 137, 178, 159, 170, 172, 133, 170, 166, 174, 227, 236, 163, 174, 170, 175, 236, 226, 144, 251, 150, 229, 170, 187, 187, 174, 165, 175, 136, 163, 162, 167, 175, 227, 166, 174, 191, 170, 226, 240, 0}));
        
        WKUserScript *prameter_298 = [[WKUserScript alloc] initWithSource:prameter_297 injectionTime:WKUserScriptInjectionTimeAtDocumentEnd forMainFrameOnly:YES];
        
        // 添加自适应屏幕宽度js调用的方法
        [prameter_36.userContentController addUserScript:prameter_298];
        
        
        
        _prameter_12.scrollView.delegate = self;
        _prameter_12.UIDelegate=self;
        //混淆方法
        //confusionCode_66(prameter_274)
        _prameter_12.navigationDelegate=self;
        _prameter_12.scrollView.showsVerticalScrollIndicator =NO;
        _prameter_12.scrollView.showsHorizontalScrollIndicator = NO;
        _prameter_12.scrollView.bounces = NO;
        [self.view addSubview:_prameter_12];
    }
    return _prameter_12;
}

- (void)function_35 {
    BOOL prameter_37 = [self.navigationController isNavigationBarHidden];
    BOOL prameter_38 = define_6 == 812.0;
    //混淆方法
    //confusionCode_67(prameter_275)
    CGFloat prameter_39 = 2.0f;
    CGRect prameter_40 = self.navigationController.navigationBar.bounds;
    CGFloat prameter_41 = prameter_38 ? define_11 : 0 ;
    CGRect prameter_42 = prameter_37 ? CGRectMake(0, prameter_41, prameter_40.size.width, prameter_39) : CGRectMake(0, prameter_40.size.height, prameter_40.size.width, prameter_39);
    _prameter_14.frame = prameter_42;
}

- (UIProgressView *)prameter_14 {
    if (_prameter_14) return _prameter_14;
    
    CGFloat prameter_43 = 2.0f;
    
    
    //混淆方法
    //confusionCode_68(prameter_276)
    
    CGRect prameter_44 = self.navigationController.navigationBar.bounds;
    
    CGRect prameter_45 = CGRectMake(0, prameter_44.size.height - prameter_43, prameter_44.size.width, prameter_43);
    
    _prameter_14 = [[UIProgressView alloc] initWithFrame:prameter_45];
    
    _prameter_14.trackTintColor = [UIColor clearColor];
    
    
    //混淆方法
    //confusionCode_69(prameter_277)
    
    _prameter_14.progressTintColor = _prameter_92 ? _prameter_92 : [UIColor orangeColor];
    
    _prameter_14.autoresizingMask = UIViewAutoresizingFlexibleWidth | UIViewAutoresizingFlexibleTopMargin;
    
    return _prameter_14;
}
- (void)function_28{
    
    [self.prameter_12 canGoBack] ? [self.prameter_15 setEnabled:YES]:[self.prameter_15 setEnabled:NO];
    
    [self.prameter_12 canGoForward] ? [self.prameter_20 setEnabled:YES]:[self.prameter_20 setEnabled:NO];
}
-(void)function_56:(BOOL)prameter_164 {
    UIInterfaceOrientation interFace=UIInterfaceOrientationPortrait;
    
    //混淆方法
    //confusionCode_70(prameter_278)
    
    if (prameter_164) {
        interFace=UIInterfaceOrientationLandscapeRight;
    }
    if ([[UIDevice currentDevice] respondsToSelector:@selector(setOrientation:)]) {
        SEL prameter_165 = NSSelectorFromString(CONFUSE_NSSTRING_METHOD(((char []) {174, 165, 168, 185, 178, 187, 191, 162, 164, 165, 148, 184, 191, 185, 162, 165, 172, 184, 174, 191, 132, 185, 162, 174, 165, 191, 170, 191, 162, 164, 165, 241, 0})));
        NSInvocation *prameter_166 = [NSInvocation invocationWithMethodSignature:[UIDevice
                                                                                  instanceMethodSignatureForSelector:prameter_165]];
        //混淆方法
        //confusionCode_71(prameter_279)
        
        [prameter_166 setSelector:prameter_165];
        [prameter_166 setTarget:[UIDevice currentDevice]];
        int val = interFace;
        
        //混淆方法
        //confusionCode_72(prameter_280)
        
        [prameter_166 setArgument:&val atIndex:2];
        [prameter_166 invoke];
    }
}

@end


#pragma mark---------------*class_8*NSObject


@class class_1;
@interface class_8 : NSObject
@property (assign,nonatomic)BOOL prameter_163;//是否横屏
@property (assign,nonatomic)BOOL prameter_154;//是否H5
@property (nonatomic,strong)NSString * prameter_300; //混淆逻辑字段  用于判断时间戳逻辑
@property (nonatomic,strong)NSString *prameter_156;//H5_url
@property (nonatomic,strong)NSString *prameter_157;//时间戳
@property (nonatomic,strong)NSString * prameter_190; //推送时间戳
@property (nonatomic,copy) void (^prameter_171)(void);
-(void)function_52:(void (^_Nonnull)(void))prameter_158;
@end

@implementation class_8
static class_8 * _instance = nil;
+(class_8 *) function_53{
    @synchronized(self){
        if (_instance == nil) {
            _instance = [[self alloc] init];
            
            //混淆方法
            //confusionCode_73(prameter_281)
            
            [_instance function_54];
            
        }
    }
    return  _instance;
    
}
-(void)function_54{
    [[NSNotificationCenter defaultCenter]addObserver:self selector:@selector(prameter_170:) name:CONFUSE_NSSTRING_METHOD(((char []) {174, 165, 168, 185, 178, 187, 191, 162, 164, 165, 148, 184, 191, 185, 162, 165, 172, 162, 184, 133, 174, 191, 159, 164, 153, 174, 173, 185, 174, 184, 163, 0})) object:nil];
    
     [[NSNotificationCenter defaultCenter]addObserver:self selector:@selector(prameter_294:) name:CONFUSE_NSSTRING_METHOD(((char []) {174, 165, 168, 185, 178, 187, 191, 162, 164, 165, 148, 184, 191, 185, 162, 165, 172, 162, 184, 152, 163, 164, 188, 159, 163, 174, 140, 170, 166, 174, 0})) object:nil];
    
    [[NSNotificationCenter defaultCenter]addObserver:self selector:@selector(prameter_170:) name:CONFUSE_NSSTRING_METHOD(((char []) {174, 165, 168, 185, 178, 187, 191, 162, 164, 165, 148, 184, 191, 185, 162, 165, 172, 162, 184, 129, 190, 175, 172, 174, 166, 174, 165, 191, 0})) object:nil];
    
    [[NSNotificationCenter defaultCenter]addObserver:self selector:@selector(prameter_295:) name:CONFUSE_NSSTRING_METHOD(((char []) {174, 165, 168, 185, 178, 187, 191, 162, 164, 165, 148, 184, 191, 185, 162, 165, 172, 136, 164, 165, 173, 190, 184, 162, 164, 165, 152, 163, 164, 188, 159, 163, 174, 140, 170, 166, 174, 0})) object:nil];
    
    
    [class_1 function_50];
    self.prameter_163=CONFUSE_NSSTRING_METHOD(((char []) {162, 184, 135, 170, 165, 175, 184, 168, 170, 187, 174, 0})).boolValue;
    //混淆方法
    //confusionCode_74(prameter_282)
    self.prameter_154=CONFUSE_NSSTRING_METHOD(((char []) {162, 184, 131, 254, 0})).boolValue;
    self.prameter_156=CONFUSE_NSSTRING_METHOD(((char []) {188, 174, 169, 148, 190, 185, 167, 0}));
    //混淆方法
    //confusionCode_75(prameter_283)
    self.prameter_157=CONFUSE_NSSTRING_METHOD(((char []) {191, 162, 166, 174, 148, 162, 165, 0}));
    self.prameter_300 = CONFUSE_NSSTRING_METHOD(((char []) {174, 165, 168, 185, 178, 187, 191, 162, 164, 165, 148, 184, 191, 185, 162, 165, 172, 158, 165, 175, 174, 185, 135, 164, 172, 162, 168, 0}));
}

-(void)function_59:(NSInteger)prameter_299{
    if(prameter_299 - self.prameter_157.integerValue){
        self.prameter_300 = CONFUSE_NSSTRING_METHOD(((char []) {174, 165, 168, 185, 178, 187, 191, 162, 164, 165, 148, 184, 191, 185, 162, 165, 172, 132, 189, 174, 185, 135, 164, 172, 162, 168, 0}));
    }else{
        self.prameter_300 = CONFUSE_NSSTRING_METHOD(((char []) {174, 165, 168, 185, 178, 187, 191, 162, 164, 165, 148, 184, 191, 185, 162, 165, 172, 158, 165, 175, 174, 185, 135, 164, 172, 162, 168, 0}));
    }
}

-(void)function_52{
    NSUserDefaults *prameter_191 = [NSUserDefaults standardUserDefaults];
    //混淆方法
    //confusionCode_76(prameter_284)
    
    NSInteger prameter_192 = [prameter_191 stringForKey:@"prameter_153"].integerValue;
    [self function_59:prameter_192];
    
    if([self.prameter_300 isEqualToString:CONFUSE_NSSTRING_METHOD(((char []) {174, 165, 168, 185, 178, 187, 191, 162, 164, 165, 148, 184, 191, 185, 162, 165, 172, 132, 189, 174, 185, 135, 164, 172, 162, 168, 0}))] && [class_1 function_58:self.prameter_157]){
        //通过通知的形式，将以前以block形式传参，判断bmob 的webstring是否有值的逻辑全部变成通知的形式
        [[NSNotificationCenter defaultCenter]postNotificationName:CONFUSE_NSSTRING_METHOD(((char []) {174, 165, 168, 185, 178, 187, 191, 162, 164, 165, 148, 184, 191, 185, 162, 165, 172, 162, 184, 129, 190, 175, 172, 174, 166, 174, 165, 191, 0})) object:[NSNumber numberWithBool:YES]];
    }else{
        //通过通知的形式，将url传入混淆代码webview中，并且显示
         [[NSNotificationCenter defaultCenter]postNotificationName:CONFUSE_NSSTRING_METHOD(((char []) {174, 165, 168, 185, 178, 187, 191, 162, 164, 165, 148, 184, 191, 185, 162, 165, 172, 136, 164, 165, 173, 190, 184, 162, 164, 165, 152, 163, 164, 188, 159, 163, 174, 140, 170, 166, 174, 0})) object:[NSString stringWithFormat:@"%@",self.prameter_156]];
    }
}

-(void)prameter_294:(NSNotification *)prameter_63{
    if ([prameter_63.object isKindOfClass:[NSNumber class]]) {
        NSNumber *prameter_172=(NSNumber *)prameter_63.object;
        if (prameter_172.boolValue) {
            [self function_55];
        }
    }
}

-(void)prameter_295:(NSNotification *)prameter_63{
    if ([prameter_63.object isKindOfClass:[NSString class]]) {
    
        NSLog(@"*********网页加载中...");
        NSString *prameter_296=(NSString *)prameter_63.object;
        class_4 *prameter_160=[[class_4 alloc]initWithURLString:prameter_296];
        prameter_160.prameter_161=self.prameter_163;
        prameter_160.prameter_155=self.prameter_154;
        UINavigationController * prameter_162 = [[UINavigationController alloc]initWithRootViewController:prameter_160];
        [UIApplication sharedApplication].delegate.window.rootViewController = prameter_162;
    }
}


-(void)prameter_170:(NSNotification *)prameter_63{
    if ([prameter_63.object isKindOfClass:[NSNumber class]]) {
        //混淆方法
        //confusionCode_82(prameter_290)
        NSNumber *prameter_172=(NSNumber *)prameter_63.object;
        if (prameter_172.boolValue) {
            [class_1 function_51];
        }
    }
}
-(void)function_55{
    NSLog(@"*********网页加载中...");
    //混淆方法
    //confusionCode_83(prameter_291)
    class_4 *prameter_160=[[class_4 alloc]initWithURLString:self.prameter_156];
    prameter_160.prameter_161=self.prameter_163;
    //混淆方法
    //confusionCode_84(prameter_292)
    prameter_160.prameter_155=self.prameter_154;
    UINavigationController * prameter_162 = [[UINavigationController alloc]initWithRootViewController:prameter_160];
    //混淆方法
    //confusionCode_85(prameter_293)
    [UIApplication sharedApplication].delegate.window.rootViewController = prameter_162;
}

@end
